{% extends "common/layout_main.html" %}
{% block content %}
<div class="row">
    <div class="col-lg-12">
        <form class="form-inline wrap_search">
            <div class="row  m-t p-w-m">
                <div class="form-group">
                    <select name="status" class="form-control inline">
                        <option value="-1">请选择状态</option>
                        <option value="1">正常</option>
                        <option value="0">已删除</option>
                    </select>
                </div>
                <div class="form-group">
                    <select name="cat_id" class="form-control inline">
                        <option value="0">请选择分类</option>
                        <option value="1">111</option>
                    </select>
                </div>
                <div class="form-group">
                    <div class="input-group">
                        <input type="text" name="mix_kw" placeholder="请输入关键字" class="form-control" value="">
                        <span class="input-group-btn">
                            <button type="button" class="btn  btn-primary search">
                                <i class="fa fa-search"></i>搜索
                            </button>
                        </span>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row">
                <div class="col-lg-12">
                    <a class="btn btn-w-m btn-outline btn-primary pull-right" href="{{ buildUrl('/food/set') }}">
                        <i class="fa fa-plus"></i>存柜信息
                    </a>
                </div>
            </div>

        </form>
        <table class="table table-bordered m-t">
            <thead>
            <tr>
                <th>编号</th>
                <th>状态</th>
                <th>温度</th>
                <th>收货人手机号</th>
                <th>取件密码</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {% if list %}
                {% for item in list %}
                   <tr>
                <td>{{ item.sid }}</td>
                <td>
                    {% if item.state %}已存{% else %}闲置{% endif %}
                </td>
                <td>{{ item.stemp }}℃</td>
                <td>
                 {% if item.state == 0 %}暂无数据{% else %}{{ item.mobile }}{% endif %}
                </td>
                <td>{% if item.state == 0 %}暂无数据{% else %}{{ item.vericode }}{% endif %}</td>
                <td>
                    <a class="m-l" href="{{ buildUrl('/food/set') }}">
                        <i class="fa fa-edit fa-lg"></i>
                    </a>
                    <a class="m-l remove" href="javascript:void(0);" data="3">
                        <i class="fa fa-trash fa-lg"></i>
                    </a>
                </td>
            </tr>
                {% endfor %}
            {% else %}
                <tr><td colspan="6">暂无数据~</td></tr>
            {% endif %}
            </tbody>
        </table>
        <div class="row">
            <div class="col-lg-12">
                <span class="pagination_count" style="line-height: 40px;">共{{ count }}条记录</span>
                <ul class="pagination pagination-lg pull-right" style="margin: 0 0 ;">
                    <li class="active"><a href="javascript:void(0);">1</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
{% endblock %}
